package DesignPrinciple.Demeter;

public class Agent {
    private Star star;
    private Fans fans;
    private Company company;

    public void setStar(Star star) {
        this.star = star;
    }

    public void setFans(Fans fans) {
        this.fans = fans;
    }

    public void setCompany(Company company) {
        this.company = company;
    }

    public void meeting() {
        System.out.println(star.getName() + "与" + fans.getFanName() + "见面");
    }

    public void bussiness() {
        System.out.println("与" + company.getCompanyName() + "洽谈合作");
    }
}
